<template>
    <div class="pop_ups_box" v-if="store.state.info.msg"></div>
    <div class="pop_ups_content outer_shadows" v-if="store.state.info.msg">
        <img :src="'/img/popUps/'+store.state.info.type+'.png'" alt="">
        <p v-html="store.state.info.msg"></p>
    </div>
</template>
<!--全局弹窗消息-->
<script setup>
import store from "@/store/index.js";

</script>

<style scoped>
.pop_ups_box {
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100vw;
    height: 100vh;
    animation: back 1.5s ease 0s 1 forwards;
}

@keyframes back {
    0% {
    }
    100% {
        display: none;
    }
}

.pop_ups_content {
    position: fixed;
    top: 20%;
    left: 50%;
    display: flex;
    align-items: center;
    justify-content: space-around;
    transform: translateX(-50%);
    margin-top: -10px;
    height: 32px;
    line-height: 32px;
    font-size: 14px;
    text-align: center;
    min-width: 10px;
    padding: 2px 10px;
    border-radius: 2px;
    z-index: 999;
    border: 1px solid #ffffff;
    box-shadow: 0 10px 10px -10px rgba(96, 97, 98);
    animation: content 2.5s ease-in-out 0s 1 forwards;
}

.pop_ups_content img {
    width: 15px;
    height: 15px;
    margin: 3px 5px 0 0;
}

@keyframes content {
    0% {
        transform: translateX(-50%) scale(0);
    }
    10% {
        transform: translateX(-50%) scale(1.05);
    }
    30% {
        transform: translateX(-50%) scale(1);
    }
    50% {
        transform: translateX(-50%) scale(1.02);
    }
    90% {
        transform: translateX(-50%) scale(1);
    }
    100% {
        transform: translateX(-50%) scale(0);
    }
}
</style>